﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WINADM.Server.WMI
{
    public class WMIConstants
    {
        public const string WMIRootNamespace = "root\\CIMV2";

        #region Win32_serice constants
        public const string WMIQuery_SingleServiceQuery = "Win32_Service.Name='{0}'";
        public const string WMIQuery_AllServiceQuery = "SELECT * FROM Win32_Service";
        public const string WMIQuery_AllDependentServiceQuery = "SELECT * FROM Win32_DependentService";
        public const string WMIMethodReturnValue = "ReturnValue";
        public const string WMIMethod_Win32Service_StartService = "StartService";
        public const string WMIMethod_Win32Service_StopService = "StopService";
        public const string WMIMethod_Win32Service_PauseService = "PauseService";
        public const string WMIMethod_Win32Service_ResumeService = "ResumeService";
        public const string WMIMethod_Win32Service_DeleteService = "Delete";
        public const string WMIMethod_Win32Service_CreateService = "Create";
        public const string WMIMethod_Win32Service_ModifyService = "Change";
        public const string WMIMethod_Win32Service_InterrogateService = "InterrogateService";
        public const string WMIMethod_InvokeMethod_Exception_Message = "An error occurred while trying to execute the {0} WMI method";
        public const string WMIMethod_InvokeMethod_UnSuccessfull_Message = "{0} operation on service {1} is unsuccessfull. Reason: {2}";
        public const string WMIMethod_ServiceInstance_Null_Message = "No Service Instance found on the server with name: {0}";
        #endregion

        #region Win32_Process constants
        public const string WMIQuery_AllProcessQuery = "SELECT * FROM Win32_Process";
        #endregion

        #region Win32_NTLogEvent constants
        public const string WMIQuery_AllEventLogEntry = "SELECT * FROM Win32_NTLogEvent  WHERE TimeWritten > '{0}'";
        #endregion
    }
}
